package Java多线程和并发.Java并发理论基础;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2022-02-17 21:53
 **/
public class TestAtomic {
    public static void main(String[] args) {
        AtomicInteger i = new AtomicInteger(0);
        AtomicInteger j = new AtomicInteger(3);
        System.out.println(i.incrementAndGet());
        System.out.println(j.incrementAndGet());
    }
}
